﻿@model SDCloudSolution.SDCloud.Web.Models.LoginViewModel

@{
    ViewBag.Title = "Log in";
    Layout = MVC.Shared.Views._GuestLayout;
}

<div class="oj-pagingcontrol-nav-page">
    <h1 class="oj-header-border oj-sm-align-self-center">Sign In</h1>
    <div class="oj-sm-12 oj-lg-8 oj-xl-8 oj-md-8 oj-flex-item" style="margin:auto;">
        <section id="socialLoginForm" class="oj-text-primary-color oj-padding-lg">
            @Html.Partial(MVC.Account.Views._ExternalLoginsListPartial, new { Action = "ExternalLogin", ReturnUrl = ViewBag.ReturnUrl })
        </section>
    </div>
</div>
<div class="oj-panel oj-panel-alt2 oj-panel-shadow-lg oj-sm-10 oj-lg-6 oj-xl-5 oj-md-7 oj-flex-item" style="margin:auto;">
        <section id="loginForm" class="oj-form oj-form-layout">
            @using (Html.BeginForm(MVC.Account.Login((string)ViewBag.ReturnUrl), FormMethod.Post, new { @class = "oj-form ", role = "form" }))
            {
                @Html.AntiForgeryToken()
                @Html.ValidationSummary(true)
                <div class="oj-form-control">
                    @Html.LabelFor(m => m.UserName, new { @class = "oj-sm-6  control-label oj-text-primary-color oj-gauge-metric-label" })
                    <div class="oj-md-12">
                        @Html.TextBoxFor(m => m.UserName, new { @class = "oj-form-control oj-sm-12" })
                        @Html.ValidationMessageFor(m => m.UserName)
                    </div>
                </div>
                        <div class="oj-form-control">
                            @Html.LabelFor(m => m.Password, new { @class = "oj-sm-6  control-label oj-text-primary-color oj-gauge-metric-label" })
                            <div class="oj-md-12">
                                @Html.PasswordFor(m => m.Password, new { @class = "oj-form-control oj-sm-12" })
                                @Html.ValidationMessageFor(m => m.Password)
                            </div>
                        </div>
                        <div class="oj-form-control">
                            <div class="oj-md-12">
                                <div class="checkbox">
                                    @Html.CheckBoxFor(m => m.RememberMe)
                                    @Html.LabelFor(m => m.RememberMe, new { @class = "oj-text-primary-color" })
                                </div>
                            </div>
                        </div>
                        <div class="oj-form-control">
                            <div class="oj-md-12">
                                <button type="submit" class="oj-button-primary">Log In</button>
                                <span class="oj-text-primary-color">
                                    @Html.ActionLink("Register", MVC.Account.Register()) if you don't have a local account.
                                </span>
                            </div>
                        </div>
            }
        </section>
</div>